package test;

import java.util.Vector;

import javax.swing.table.DefaultTableModel;

public class MyTableModel extends DefaultTableModel {
	//protected Object[][] data = new Object[0][0];
	//private int index = 0;
	public int rowActual, colActual;
	public MyTableModel(int rowCount, int columnCount) {
		super(rowCount, columnCount);
	}
	@Override
	public Class getColumnClass(int c) {
		Integer a = 0;
		return a.getClass();
	}

	@Override
	public Object getValueAt(int row, int col) {
		//System.out.println(((Vector)getDataVector().elementAt(row)).elementAt(col));
		rowActual = row;
		colActual = col;
		return ((Vector)getDataVector().elementAt(row)).elementAt(col);
	}
/*	@Override
	public void setValueAt(Object value, int row, int col) {
		data[row][col] = value;
        fireTableCellUpdated(row, col);
	}
	@Override
	public void addRow(Vector rowData) {
		dataVector.add(rowData);
		data[0] = rowData.toArray();
		++index;
		super.addRow(rowData);
	}
	
	
*/
	
}
